.class Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$f;
.super Landroid/os/Handler;
.source "AddPictureActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "f"
.end annotation


# instance fields
.field final synthetic a:Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;


# direct methods
.method constructor <init>(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;Landroid/os/Looper;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$f;->a:Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;

    .line 2
    invoke-direct {p0, p2}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView$ContentViewHolder;ILandroid/graphics/Bitmap;)V
    .locals 1

    .line 1
    invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->getAdapterPosition()I

    move-result v0

    if-ne v0, p1, :cond_0

    .line 2
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView$ContentViewHolder;->b:Landroid/widget/ImageView;

    invoke-virtual {p0, p2}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    :cond_0
    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 7

    .line 1
    iget v0, p1, Landroid/os/Message;->what:I

    .line 2
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView$ContentViewHolder;

    .line 3
    iget p1, p1, Landroid/os/Message;->arg1:I

    .line 4
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$f;->a:Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;

    invoke-static {v2}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->g(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;)Lcom/esfile/screen/recorder/media/b;

    move-result-object v2

    if-nez v2, :cond_0

    return-void

    .line 5
    :cond_0
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$f;->a:Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;

    invoke-static {v3}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->d(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;)J

    move-result-wide v3

    add-int/lit8 v5, v0, -0x1

    int-to-long v5, v5

    mul-long v3, v3, v5

    int-to-long v5, p1

    div-long/2addr v3, v5

    long-to-int p1, v3

    .line 6
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity$f;->a:Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;

    int-to-long v4, p1

    invoke-static {v3, v4, v5}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;->a(Lcom/esfile/screen/recorder/videos/edit/activities/picture/AddPictureActivity;J)J

    move-result-wide v3

    const-wide/16 v5, 0x3e8

    mul-long v3, v3, v5

    const/4 p1, 0x0

    .line 7
    invoke-virtual {v2, v3, v4, p1}, Lcom/esfile/screen/recorder/media/b;->a(JZ)Landroid/graphics/Bitmap;

    move-result-object p1

    if-nez p1, :cond_1

    return-void

    .line 8
    :cond_1
    new-instance v2, Lcom/esfile/screen/recorder/videos/edit/activities/picture/c;

    invoke-direct {v2, v1, v0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/picture/c;-><init>(Lcom/esfile/screen/recorder/videos/edit/ui/SnippetBgView$ContentViewHolder;ILandroid/graphics/Bitmap;)V

    invoke-static {v2}, Les/xc;->b(Ljava/lang/Runnable;)V

    return-void
.end method
